package com.rinlink.gateway.jt808.model;

import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class NoticeMessageOutDTO<T> {

    private NoticeMessageType type;

    private T payload;

    public static <T> NoticeMessageOutDTO<T> of(NoticeMessageType type,T payload){
        return new NoticeMessageOutDTO<T>().setPayload(payload).setType(type);
    }

}
